Repository navigation
plugin: test-impact --files names the files that follow it, and is not itself a file (#2022) - #2024
Merged
Merged
Conversation
swapnilpaliwal-sd
requested review from
JaredHLZhang and
suyashpaliwal26
as code owners
November 18, 2026 23:05
…t itself a file (#2022) `test-impact --files a.py b.py` handed `--files` on to `changed`, which took it as one more named path; it is not source, so it was listed as a changed file outside every indexed language and searched for by name in the tests. `--files` is now dropped with the other test-impact flags, so the named files are read as they are for `test-impact a.py b.py`. tests/test_command.py checks what reaches `changed`.
… keeps its own version) 0.2.3 is released, so what merges into this branch ships in 0.2.4. package.json (version and the five @axiomcode/engine-* pins) and the four editor plugin and extension manifests move from 0.2.3 to 0.2.4. The parser keeps its own version.
…st-impact-files-flag
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2022
Part of #1832.
What changed
axiomcode-test-impactdrops--fileswith its other own flags (--json,--why,--limit N) before handing the arguments tochanged.test-impact --files a.py b.pynow readsa.pyandb.pyas named files, exactly astest-impact a.py b.pydoes, and--filesno longer reacheschangedas a path. The usage line shows the optional--files.Why the goldens moved, or why they did not
No golden moved. No engine or rule change.
Evidence
tests/test_command.pyreplaces the call tochangedand checks the arguments it receives:['--files', 'a.py', 'b.py'], FAIL['a.py', 'b.py'], plus--whole, because named files count whole. The file passes.